<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>

    </style>
</head>

<body>

    <my-com data-test='aosd' title='这里是自定义的标题' content='这里是我们自定义的内容'>
        <span>asdaoj</span>
    </my-com>
    <script src='./dialog.js' type='module'></script>
    <script type='module'>
        let domcom = document.querySelector('my-com');
        domcom.__proto__['test'] = function () {
            console.log('123');
        }
    </script>

</body>

</html>